package control.command
{
	import control.util.GameFacade;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import view.Immortal;
	
	public class StartupCommand extends SimpleCommand implements ICommand
	{
		public static const NAME :String = "StartupCommand";
		public function StartupCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			var game :Immortal = notification.getBody() as Immortal;
			GameFacade.I.game = game;
			trace(game.versions);
			facade.removeCommand(NAME);
		}
	}
}